package com.feng.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MenuVo {
    //菜单ID
    private Long id;
    //菜单名
    private String menuName;
    //父ID
    private Long parentId;
    //显示顺序
    private Integer orderNum;
    //路由路径
    private String path;
    //组件路径
    private String component;
    //菜单类型
    private String menuType;
    //菜单状态（0显示 1隐藏）
    private Integer visible;
    //菜单状态（0正常 1停用）
    private Integer status;
    //权限标识
    private String permission;
    //菜单图标
    private String icon;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    List<MenuVo> children;
}
